<template>
	<view class="card_top">
		<view>
			<image :src="avatar"></image>
		</view>
		<view class="card_user">
			{{username}}
			<text>\n 剩余天数：0</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"userTop",
    props:{
      username:String,
      avatar:Object
    },
		data() {
			return {
      };
		}
	}
</script>

<style>
	.card_top{
		background-color: #FFFFFF;
		width: 100vw;
		height: 10vh;
		margin: 0vh auto;
	}
	.card_top image{
		width: 16vw;
		height:16vw;
    border-radius: 100%;
		margin-top: 1vh;
		margin-left: 5vw;
	}
	.card_top view{
		float: left;
	}
	.card_user{
		padding: 1.5vh;
	}
	.card_user text{
		color: #C8C7CC;
		font-size:15px;
		line-height: 3.5vh;
	}
</style>
